package models

import (
	"fmt"
	"regexp"
)

type Content struct {
	id int
	label string
	chirdren *Content
}

func NewContent(blog *Blog) *Content{
	//blogContent := blog.BlogContent
	blogContent := "#faf ##ffas #aa ##bb"
	reg := regexp.MustCompile(`#.\0`)
	if reg == nil {
		fmt.Println("regexp err")
		return nil
	}
	result := reg.FindAllStringSubmatch(blogContent, -1)
	fmt.Println("result", result)
	return nil
}
